<?php /** @var BootActiveForm $form */
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id'=>'create-transfer',
    'type'=>'horizontal',
    'enableClientValidation'=>true,
    'clientOptions'=>array(
        'validateOnSubmit'=>true,
    ),
)); ?>
 
<fieldset>
 
    <legend>新增传输</legend>
    <?php echo $form->errorSummary($model); ?>
    <?php echo $form->textFieldRow($model, 'job_name'); ?>
    <?php echo $form->dropDownListRow($model, 'res_id', Resource::listItems()); ?>
   
    <?php echo $form->dropDownListRow($model, 'job_frequency', Frequency::$names)?>
    <?php echo $form->dropDownListRow($model, 'job_priority', Priority::$labels); ?>
    <?php echo $form->radioButtonListRow($model, 'system_id', StorageSystem::listItems(array(PhysicalType::Database, PhysicalType::RemoteFile)), array('hint'=>'<strong>注意:</strong> 结果将导出到指定的存储系统.')); ?>

</fieldset>
<div class="form-actions">
    <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'type'=>'primary', 'icon'=>'ok white', 'label'=>'创 建')); ?>
    <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'reset', 'icon'=>'remove', 'label'=>'取 消')); ?>
</div>
<?php $this->endWidget(); ?>

